package me.ZFC.Text;

import java.util.Scanner;

public class Test9 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个字符串");
        String s = sc.next();
        String str = new StringBuilder().append(s).reverse().toString();
        if (s.equals(str)) {
            System.out.println("是回文数");
        } else {
            System.out.println("不是回文数");
        }
    }

}
